<template>
	<view class="container">
		<web-view :src="deviceInfo.playUrl"></web-view>
	</view>
</template>

<script>
import { deviceLook } from "@/api/project.js";
import moment from 'moment';
export default {
	data() {
		return {
			sCrm_v2: "",		//合同号
			deviceInfo: ""		//设备信息
		}
	},
	onLoad(e){
		this.sCrm_v2 = e.sCrm_v2 ? e.sCrm_v2 : ""
		this.getDevice()
	},
	methods: {
		/**
		 * 获取设备信息
		 */
		getDevice(){			
			let that = this
			deviceLook({"sCrm_v2": that.sCrm_v2}).then((res)=>{
				if(res.code != "0") {
					setTimeout(function(){
						uni.navigateBack(-1)
					},1500)
					return;
				}
				that.deviceInfo = res.data
			})
		}
	}
}
</script>

<style>
</style>